<?php
namespace Home\Controller;
use Think\Controller;
class PhoneBarController extends CommnController{

    public function notify()
    {
        $this->display();
    }

    public function phonebar()
    {
        $agent=M('admin','','KEFU')->where(['id'=>$_SESSION['id']])->field('agent,agent_pwd')->find();
        $this->assign(array(
            'agent' => $agent['agent'],
            'agentPwd' => $agent['agent_pwd'],
        ));
        $this->display();
    }
}